#!/usr/bin/expect
set work "/work/ModemWarface/dataassets/"
log_file "$work/../shell/log/export-data.log"
set timeout 3600
spawn "/Applications/Unity/Unity.app/Contents/MacOS/Unity" -quit -batchmode -projectPath "$work" -executeMethod ExportAssetBundles.ExportResourceTrack -logFile "$work/../shell/log/export-data1.log"
expect eof
cd $work/Assets/temp/
spawn bash -c "python /work/ModemWarface/shell/python-tool/version.py"
expect eof
spawn bash -c "find $work/Assets/temp/ -name '*.meta'  -type f -print | xargs /bin/rm -f"
expect eof
spawn bash cp $work/Assets/temp/dataconfig/dataconfig.bytes /work/ModemWarface/zsxdres/Assets/XingYu/data/
expect eof
#spawn bash -c "svn ci /work/ModemWarface/zsxdres/Assets/XingYu/data/dataconfig.bytes -m配置数据更新"
#expect eof
spawn bash -c "scp -P8844 -r  -i $work/../shell/.mykey/rongjun $work/Assets/temp/* root@122.5.45.178:/opt/tankwar/"
expect eof
puts "end!!!!"
